package com.fbms.module.system.bean.entity;


import com.fbms.common.bean.base.BaseEntity;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 类描述：用户信息
 *
 * @ClassName SysUser
 * @Author HappyBoy
 * @Date 2023-03-15 15:31
 **/
@Data
public  class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String id;

    @NotBlank(message = "名称不能为空")
    private String name;

    private String realName;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String email;

    private String sex;

    private String houseAddress;

    @Size(min = 11, max = 11, message = "手机号长度为11位")
    @NotBlank(message = "手机号不能为空")
    private String cellphone;

    private String remark;

    private String roleId;

    private String departmentId;

    private String status;

}
